from django.urls import path
from blog import views

urlpatterns = [
    path("index/", views.index, name="index"),  # 博客列表页 首页
    path("blogs/", views.blogs, name="blogs"),  # 博客列表页
    path("blog_add/", views.blog_add, name="blog_add"),  # 博客列表页

    path("blog_detail/", views.blog_detail, name="blog_detail"),  # 博客详情页
    path("authors/", views.authors, name="authors"),  # 作者列表页
    path("author_detail/", views.author_detail, name="author_detail"),  # 作者详情页
    path("update_blog/", views.update_blog, name="update_blog"),  # 博客修改页

    path("author_add/", views.author_add, name="author_add"),  # 新增作者
    path("fun1/", views.fun1, name="fun1"),
]


